/**
 * 
 */
package web.common.entity;

import java.util.Date;

/**
 * 
* 项目名称：ebs 
* @ClassName: User
* @author ZK JIA<br>
* 创建时间： 2013-11-6 下午01:37:16<br>
* @version 1.1<br>
* 描述: TODO(用户)<br>
 */
public class User extends BaseEntity {
	public enum Type{
		COMPANY(1,"装饰公司"),//装饰公司
		DESIGNER(2,"设计师"),//设计师
		BMPROVIDER(3,"建材商");//建材商 Building materials providers 缩写
		private int type;
		private String disPlay;
		private Type(int type,String disPlay){
			this.type = type;
			this.disPlay =disPlay;
		}
		public String toString(){
			return String.valueOf(this.type);
			
		};
		public int getValue(){
			   return this.type;
				
			};
	}	
	


	private String userCode;//用户编码
	private String nickName;
	private String trueName;
	private String photo;//头像
	private String mobile;
	private String telePhone;
	private String email;
	private String status;//状态  启用 禁用
	private int type;
	private int vip;//用户等级
	private String IdNumber;
	private int age;
	private Date birthDay;
	public String getUserCode() {
		return userCode;
	}
	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public String getTrueName() {
		return trueName;
	}
	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}
	public String getPhoto() {
		return photo;
	}
	public void setPhoto(String photo) {
		this.photo = photo;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getTelePhone() {
		return telePhone;
	}
	public void setTelePhone(String telePhone) {
		this.telePhone = telePhone;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getVip() {
		return vip;
	}
	public void setVip(int vip) {
		this.vip = vip;
	}
	public String getIdNumber() {
		return IdNumber;
	}
	public void setIdNumber(String idNumber) {
		IdNumber = idNumber;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public Date getBirthDay() {
		return birthDay;
	}
	public void setBirthDay(Date birthDay) {
		this.birthDay = birthDay;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((userCode == null) ? 0 : userCode.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		User other = (User) obj;
		if (userCode == null) {
			if (other.userCode != null)
				return false;
		} else if (!userCode.equals(other.userCode))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "User [IdNumber=" + IdNumber + ", age=" + age + ", birthDay="
				+ birthDay + ", email=" + email + ", mobile=" + mobile
				+ ", nickName=" + nickName + ", photo=" + photo + ", status="
				+ status + ", telePhone=" + telePhone + ", trueName="
				+ trueName + ", type=" + type + ", userCode=" + userCode
				+ ", vip=" + vip + "]";
	}
	
	
	
	

	

}
